//Invasions will get large corps and armies before it grabs small corps and divisions. Armor and mech can't invade but it can disembark.
//Map orders for invasion need to be placed within tactical range of the offshore point for the A.I. to land
//A.I. will pick the weakest locations to invade first
//invasions will pull units from other orders regardless of position

//Germany invades Norway at Oslo
$Invasion
if_Date=3/1/1940
lifespan=tillTrigger
actionCountry=6
targetCountry=38
range=30
landAssets=1
xyArea=154,75
xyArea=154,66
$End

//Germany invades England if country left vulnerable
$Invasion
if_Date=6/1/1940
if_Country=2
if_Surrender=true
if_Plan=2
landUnitInRadius=130,56,-2,1,Allies
lifespan=tillTrigger
actionCountry=6
range=5
landAssets=5
hqAsset
xyArea=134,56
xyArea=137,54
$End

//Germany invades England if country left vulnerable
$Invasion
if_Date=6/1/1940
if_Country=2
if_Surrender=true
if_Plan=2
landUnitInRadius=134,57,-2,1,Allies
lifespan=tillTrigger
actionCountry=6
range=5
landAssets=5
hqAsset
xyArea=134,56
xyArea=134,54
$End

//UK invades Narvik if left open
$Invasion
if_Date=6/15/1940
landUnitInRadius=170,92,0,0,Axis
xyControl=170,92,Axis
lifespan=tillTrigger
actionCountry=1
xyArea=169,93
xyArea=134,65
landAssets=1
$End

//UK invades Narvik if left open
$Invasion
if_Date=6/15/1941
landUnitInRadius=170,92,0,0,Axis
xyControl=170,92,Axis
lifespan=tillTrigger
actionCountry=1
xyArea=169,93
xyArea=134,65
landAssets=1
$End

//UK invades Western France with Marines if left open
$Invasion
if_Date=6/15/1941
landUnitInRadius=133,50,0,5,Axis
xyControl=170,92,Axis
lifespan=tillTrigger
actionCountry=1
xyArea=131,48
xyArea=126,67
landAssets=2
range=10
setupSmall
$End

//UK invades Western France with Marines if left open
$Invasion
if_Date=6/15/1942
landUnitInRadius=133,50,0,5,Axis
xyControl=170,92,Axis
lifespan=tillTrigger
actionCountry=1
xyArea=131,48
xyArea=126,67
landAssets=2
range=10
setupSmall
$End

//UK invades Netherlands with Marines if left open
$Invasion
if_Date=6/15/1941
landUnitInRadius=144,60,0,5,Axis
xyControl=144,60,Axis
lifespan=tillTrigger
actionCountry=1
xyArea=142,59
xyArea=126,67
landAssets=2
range=10
setupSmall
$End

//UK invades Netherlands with Marines if left open
$Invasion
if_Date=6/15/1942
landUnitInRadius=144,60,0,5,Axis
xyControl=144,60,Axis
lifespan=tillTrigger
actionCountry=1
xyArea=142,59
xyArea=126,67
landAssets=2
range=10
setupSmall
$End

//Germany invades French North Africa
$Invasion
if_Date=1/1/1939
xyControl=146,39,Axis
lifespan=tillTrigger
actionCountry=6
xyArea=145,24
xyArea=146,39
range=25
landAssets=6
hqAsset
$End

//Germany invades Malta
$Invasion
if_Date=1/1/1939
if_Country=57
if_Surrender=true
if_Plan=2
lifespan=tillTrigger
actionCountry=6
xyArea=162,22
xyArea=156,41
range=15
landAssets=1
$End

//Italy invades Syria
$Invasion
if_Date=1/1/1939
if_Country=2
if_Surrender=true
if_Plan=2
lifespan=tillTrigger
actionCountry=7
xyArea=197,17
xyArea=162,33
range=8
landAssets=2
hqAsset
$End

//Germany invades Syria
$Invasion
if_Date=1/1/1939
if_Country=57
if_Surrender=true
if_Plan=2
lifespan=tillTrigger
actionCountry=6
xyArea=197,17
xyArea=168,41
range=8
landAssets=2
hqAsset
$End

//Italy invades Malta if left open
$Invasion
if_Date=1/1/1939
xyControl=161,21,Allies
landUnitInRadius=161,21,0,0,Allies
lifespan=tillTrigger
actionCountry=7
xyArea=162,22
xyArea=158,23
setupSmall
landAssets=1
$End

//Italy invades Gibraltar if left open
$Invasion
if_Date=1/1/1939
landUnitInRadius=127,21,0,0,Allies
xyControl=127,21,Allies
lifespan=tillTrigger
actionCountry=7
xyArea=161,21
xyArea=128,21
landAssets=1
$End

//Italy invades Cyprus if left open
$Invasion
if_Date=1/1/1939
if_Country=7
if_Alliance=Axis
landUnitInRadius=194,19,0,3,Allies
lifespan=tillTrigger
actionCountry=7
xyArea=191,20
xyArea=162,33
range=20
setupSmall
landAssets=1
$End

//Italy invades Algiers if left open
$Invasion
if_Date=1/1/1939
if_Country=2
if_Surrender=false
landUnitInRadius=142,23,0,0,Allies
lifespan=tillTrigger
actionCountry=7
xyArea=145,24
xyArea=154,43
range=8
setupSmall
landAssets=2
hqAsset
$End

//Italy invades Crete
$Invasion
if_Date=1/1/1939
if_Country=22
if_Alliance=Allies
landUnitInRadius=179,20,0,2,Allies
lifespan=tillTrigger
actionCountry=7
xyArea=177,19
xyArea=160,36
range=10
setupSmall
landAssets=1
$End

//if the Allies control Gibraltar
//USA invades North Africa
$Invasion
if_Date=4/1/1942
if_Country=3
if_Alliance=Allies
xyControl=127,21,Allies
lifespan=tillTrigger
actionCountry=3
xyArea=136,23
xyArea=8,24
landAssets=8
hqAsset
range=40
$End

//if Axis control Iberia
//USA invading Portugal
$Invasion
if_Date=4/1/1942
if_Country=45
if_Surrender=true
//Lisbon
xyControl=121,27,Axis
lifespan=tillTrigger
actionCountry=3
xyArea=119,36
xyArea=8,24
landAssets=8
hqAsset
range=20
$End

//UK invading Portugal
$Invasion
if_Date=4/1/1942
if_Country=45
if_Surrender=true
//Lisbon
xyControl=121,27,Axis
lifespan=tillTrigger
actionCountry=1
xyArea=120,35
xyArea=134,59
landAssets=4
hqAsset
range=20
$End

//USA -> Italy
//Cut off Sicily from supplies
$Invasion
if_Date=6/1/1943
xyControl=142,23,Allies
xyControl=148,23,Allies
//Tunis
xyControl=154,23,Allies
//Tripoli
xyControl=160,14,Allies
//Gibraltar
xyControl=127,21,Allies
lifespan=tillTrigger
actionCountry=3
xyArea=157,26
xyArea=160,0
range=50
landAssets=3
hqAsset
$End

//USA -> Italy
$Invasion
if_Date=6/1/1943
//Africa
xyControl=154,23,Allies
xyControl=142,23,Allies
xyControl=148,23,Allies
xyControl=160,14,Allies
xyControl=178,13,Allies
xyControl=172,13,Allies
//Gibraltar
xyControl=127,21,Allies
lifespan=tillTrigger
actionCountry=3
xyArea=159,23
xyArea=160,14
range=50
landAssets=6
$End

//UK -> Italy
$Invasion
if_Date=6/1/1943
//Africa
xyControl=154,23,Allies
xyControl=142,23,Allies
xyControl=148,23,Allies
xyControl=160,14,Allies
xyControl=178,13,Allies
xyControl=172,13,Allies
//Gibraltar
xyControl=127,21,Allies
lifespan=tillTrigger
actionCountry=1
xyArea=159,27
xyArea=160,14
range=50
landAssets=5
$End

//Allies invade France 1943 invasions STAGE 1 (Moscow Taken)
//UK
$Invasion
if_Date=5/15/1943
lifespan=tillTrigger
//Moscow Axis
xyControl=198,64,Axis
//no Axis in England
landUnitInRadius=133,60,0,6,Axis
landUnitInRadius=131,68,0,3,Axis
landUnitInRadius=130,75,0,3,Axis
actionCountry=1
xyArea=141,59
xyArea=133,66
range=8
landAssets=6
$End

//stage 2
$Invasion
if_Date=5/15/1943
lifespan=tillTrigger
//Moscow Axis
xyControl=198,64,Axis
//no Axis in England
landUnitInRadius=133,60,0,6,Axis
landUnitInRadius=131,68,0,3,Axis
landUnitInRadius=130,75,0,3,Axis
actionCountry=1
xyArea=137,55
xyArea=136,60
range=8
landAssets=4
$End

//USA
$Invasion
if_Date=5/15/1943
lifespan=tillTrigger
//Moscow Axis
xyControl=198,64,Axis
//no Axis in England
landUnitInRadius=133,60,0,6,Axis
landUnitInRadius=131,68,0,3,Axis
landUnitInRadius=130,75,0,3,Axis
actionCountry=3
xyArea=130,54
xyArea=133,66
range=8
landAssets=5
$End

$Invasion
if_Date=5/15/1943
lifespan=tillTrigger
//Moscow Axis
xyControl=198,64,Axis
actionCountry=3
xyArea=130,48
xyArea=134,59
range=8
landAssets=7
$End

//Allies invade France 1943 invasions STAGE 2 (Moscow Taken)
//UK
$Invasion
if_Date=6/15/1943
lifespan=tillTrigger
//Moscow Axis
xyControl=198,64,Axis
//no Axis in England
landUnitInRadius=133,60,0,6,Axis
landUnitInRadius=131,68,0,3,Axis
landUnitInRadius=130,75,0,3,Axis
actionCountry=1
xyArea=141,59
xyArea=133,66
range=8
landAssets=6
$End

//stage 2
$Invasion
if_Date=6/15/1943
lifespan=tillTrigger
//Moscow Axis
xyControl=198,64,Axis
//no Axis in England
landUnitInRadius=133,60,0,6,Axis
landUnitInRadius=131,68,0,3,Axis
landUnitInRadius=130,75,0,3,Axis
actionCountry=1
xyArea=137,55
xyArea=136,60
range=8
landAssets=4
$End

//USA
$Invasion
if_Date=6/15/1943
lifespan=tillTrigger
//Moscow Axis
xyControl=198,64,Axis
//no Axis in England
landUnitInRadius=133,60,0,6,Axis
landUnitInRadius=131,68,0,3,Axis
landUnitInRadius=130,75,0,3,Axis
actionCountry=3
xyArea=130,54
xyArea=133,66
range=8
landAssets=5
$End

$Invasion
if_Date=6/15/1943
lifespan=tillTrigger
//Moscow Axis
xyControl=198,64,Axis
//no Axis in England
landUnitInRadius=133,60,0,6,Axis
landUnitInRadius=131,68,0,3,Axis
landUnitInRadius=130,75,0,3,Axis
actionCountry=3
xyArea=130,48
xyArea=134,59
range=8
landAssets=7
$End

//Allies invade France 1944 invasions STAGE 1
//UK
$Invasion
if_Date=5/15/1944
lifespan=tillTrigger
//no Axis in England
landUnitInRadius=133,60,0,6,Axis
landUnitInRadius=131,68,0,3,Axis
landUnitInRadius=130,75,0,3,Axis
actionCountry=1
xyArea=141,59
xyArea=133,66
range=8
landAssets=6
$End

//stage 2
$Invasion
if_Date=5/15/1944
lifespan=tillTrigger
//no Axis in England
landUnitInRadius=133,60,0,6,Axis
landUnitInRadius=131,68,0,3,Axis
landUnitInRadius=130,75,0,3,Axis
actionCountry=1
xyArea=137,55
xyArea=136,60
range=8
landAssets=4
$End

//USA
$Invasion
if_Date=5/15/1944
lifespan=tillTrigger
//no Axis in England
landUnitInRadius=133,60,0,6,Axis
landUnitInRadius=131,68,0,3,Axis
landUnitInRadius=130,75,0,3,Axis
actionCountry=3
xyArea=130,54
xyArea=133,66
range=8
landAssets=5
$End

$Invasion
if_Date=5/15/1944
lifespan=tillTrigger
//no Axis in England
landUnitInRadius=133,60,0,6,Axis
landUnitInRadius=131,68,0,3,Axis
landUnitInRadius=130,75,0,3,Axis
actionCountry=3
xyArea=130,48
xyArea=134,59
range=8
landAssets=7
$End

//Allies invade France 1944 invasions STAGE 2
//UK
$Invasion
if_Date=6/15/1944
lifespan=tillTrigger
//no Axis in England
landUnitInRadius=133,60,0,6,Axis
landUnitInRadius=131,68,0,3,Axis
landUnitInRadius=130,75,0,3,Axis
actionCountry=1
xyArea=141,59
xyArea=133,66
range=8
landAssets=6
$End

//stage 2
$Invasion
if_Date=6/15/1944
lifespan=tillTrigger
//no Axis in England
landUnitInRadius=133,60,0,6,Axis
landUnitInRadius=131,68,0,3,Axis
landUnitInRadius=130,75,0,3,Axis
actionCountry=1
xyArea=137,55
xyArea=136,60
range=8
landAssets=4
$End

//USA
$Invasion
if_Date=6/15/1944
lifespan=tillTrigger
//no Axis in England
landUnitInRadius=133,60,0,6,Axis
landUnitInRadius=131,68,0,3,Axis
landUnitInRadius=130,75,0,3,Axis
actionCountry=3
xyArea=130,54
xyArea=133,66
range=8
landAssets=5
$End

$Invasion
if_Date=6/15/1944
lifespan=tillTrigger
//no Axis in England
landUnitInRadius=133,60,0,6,Axis
landUnitInRadius=131,68,0,3,Axis
landUnitInRadius=130,75,0,3,Axis
actionCountry=3
xyArea=130,48
xyArea=134,59
range=8
landAssets=7
$End

//1944 Invasions of Southern France
//UK Southern France
$Invasion
if_Date=5/15/1944
landUnitInRadius=134,51,1,5,Allies
lifespan=tillTrigger
actionCountry=1
xyArea=148,38
xyArea=156,15
range=15
landAssets=3
$End

//UK Southern France
$Invasion
if_Date=6/15/1944
landUnitInRadius=134,51,1,5,Allies
lifespan=tillTrigger
actionCountry=1
xyArea=148,37
xyArea=156,15
range=15
landAssets=4
hqAsset
$End

//UK Southern France
$Invasion
if_Date=6/1/1944
landUnitInRadius=134,51,1,5,Allies
lifespan=tillTrigger
actionCountry=1
xyArea=148,37
xyArea=191,10
range=15
landAssets=4
hqAsset
$End

//UK Southern France
$Invasion
if_Date=7/1/1944
landUnitInRadius=134,51,1,5,Allies
lifespan=tillTrigger
actionCountry=1
xyArea=148,37
xyArea=191,10
range=15
landAssets=4
hqAsset
$End

//USA Southern France
$Invasion
if_Date=5/15/1944
landUnitInRadius=134,51,1,5,Allies
lifespan=tillTrigger
actionCountry=3
xyArea=144,38
xyArea=151,18
range=15
hqAsset
landAssets=4
$End

//USA Southern France
$Invasion
if_Date=6/15/1944
landUnitInRadius=134,51,1,5,Allies
lifespan=tillTrigger
actionCountry=3
xyArea=144,38
xyArea=151,18
range=15
hqAsset
landAssets=4
$End